Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add CXL host exerciser cache application #3009

Merged
merged 16 commits into from
Sep 27, 2023

Conversation

anandaravuri
Copy link
Contributor

Description:
Host Exerciser (HE) is responsible for generating traffic to create scenarios like Cache Hit/Miss in Device or Host Caches with the intention of exercising the path from AFU to the Host via CXL IP at full bandwidth.

Command line options:

Options:
-h,--help Print this help message and exit
-p,--pci-address TEXT [:]:.
-l,--log-level TEXT:{trace,debug,info,warning,error,critical,off} [warning]
stdout logging level
-t,--timeout UINT [60000] test timeout (msec)
--test UINT:value in {fpgardcachehit->0,fpgardcachemiss->2,fpgawrcachehit->1,fpgawrcachemiss->3,hostrdcachehit->4,hostrdcachemiss->6,hostwrcachehit->5,hostwrcachemiss->7} OR {0,2,1,3,4,6,5,7} [fpgardcachehit]
host exerciser cache test {fpgardcachehit, fpgawrcachehit, all}
--continuousmode BOOLEAN [false]
test rollover or test termination
--contmodetime UINT [1] Continuous mode time in seconds
--target UINT:value in {fpga->1,host->0} OR {1,0} [host]
host exerciser run on host or fpga
--stride UINT [0] Enable stride mode
--linerepcount UINT:INT in [1 - 256] [10]
Line repeat count
--testall BOOLEAN [false] Run all tests

Subcommands:
cache run simple cxl he cache test

PR Title should start with one of the following tags: [Fix]/[Feature]/[Style]/[Update]

[Fix]- Bug Fix

[Feature]- for new feature

[Style]- Grammar or branding fix

[Update]-For an update to an existing feature

------------- Keep everything below this line -------------------------

Description

Describe the issue, update, change or fix and why

Collateral (docs, reports, design examples, case IDs):

  • Document Update Required? (Specify FIM/AFU/Scripts)

Tests added:

Tests run:

@anandaravuri anandaravuri requested review from a team as code owners September 15, 2023 18:36
Description:
Host Exerciser (HE) is responsible for generating traffic to create scenarios like Cache Hit/Miss in Device or Host Caches with the intention of exercising the path from AFU to the Host via CXL IP at full bandwidth.

Command line options:

Options:
  -h,--help                   Print this help message and exit
  -p,--pci-address TEXT       [<domain>:]<bus>:<device>.<function>
  -l,--log-level TEXT:{trace,debug,info,warning,error,critical,off} [warning]
                              stdout logging level
  -t,--timeout UINT [60000]   test timeout (msec)
  --test UINT:value in {fpgardcachehit->0,fpgardcachemiss->2,fpgawrcachehit->1,fpgawrcachemiss->3,hostrdcachehit->4,hostrdcachemiss->6,hostwrcachehit->5,hostwrcachemiss->7} OR {0,2,1,3,4,6,5,7} [fpgardcachehit]
                              host exerciser cache test {fpgardcachehit, fpgawrcachehit, all}
  --continuousmode BOOLEAN [false]
                              test rollover or test termination
  --contmodetime UINT [1]     Continuous mode time in seconds
  --target UINT:value in {fpga->1,host->0} OR {1,0} [host]
                              host exerciser run on host or fpga
  --stride UINT [0]           Enable stride mode
  --linerepcount UINT:INT in [1 - 256] [10]
                              Line repeat count
  --testall BOOLEAN [false]   Run all tests

Subcommands:
  cache                       run simple cxl he cache test

Signed-off-by: anandaravuri <[email protected]>
samples/cxl_host_exerciser/dfl-he-cache.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/dfl-he-cache.h Outdated Show resolved Hide resolved
@tsriniv1 tsriniv1 requested a review from a team as a code owner September 22, 2023 22:45
libraries/plugins/xfpga/fpga-dfl.h Outdated Show resolved Hide resolved
libraries/plugins/xfpga/fpga-dfl.h Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Sep 22, 2023

Pull Request Test Coverage Report for Build 6316884222

  • 0 of 1039 (0.0%) changed or added relevant lines in 6 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-3.3%) to 68.624%

Changes Missing Coverage Covered Lines Changed/Added Lines %
samples/cxl_host_exerciser/cxl_host_exerciser.cpp 0 9 0.0%
samples/cxl_host_exerciser/cxl_host_exerciser.h 0 24 0.0%
samples/cxl_host_exerciser/cxl_he_cache_lpbk_cmd.h 0 27 0.0%
samples/cxl_host_exerciser/cxl_he_cmd.h 0 84 0.0%
samples/cxl_host_exerciser/he_cache_test.h 0 401 0.0%
samples/cxl_host_exerciser/cxl_he_cache_cmd.h 0 494 0.0%
Files with Coverage Reduction New Missed Lines %
include/ofs/ofs_primitives.h 1 82.61%
Totals Coverage Status
Change from base Build 6316850918: -3.3%
Covered Lines: 15763
Relevant Lines: 22970

💛 - Coveralls

samples/cxl_host_exerciser/cxl_host_exerciser.cpp Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
samples/cxl_host_exerciser/he_cache_test.h Outdated Show resolved Hide resolved
@anandaravuri anandaravuri merged commit d6fc9b2 into master Sep 27, 2023
27 checks passed
@anandaravuri anandaravuri deleted the aravuri/cmc_host_exerciser branch September 27, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants